From 259b555e84f0ce7c728f46210943ee2d0582d8e0 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 29 Jul 2005 10:24:41 +0000 Subject: [PATCH] ... for dom0 if we know we'll need it. This is the xen counterpart to the previous xenlinux patch which adds this info to the kernel. Also adds some printk's. --- xen/arch/x86/domain_build.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 78dea289e6..684065a731 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -165,6 +165,8 @@ int construct_dom0(struct domain *d, xen_pae ? "yes" : "no", dom0_pae ? "yes" : "no"); return -EINVAL; } + if (strstr(dsi.xen_section_string, "SHADOW=translate")) + opt_dom0_translate = 1; /* Align load address to 4MB boundary. */ dsi.v_start &= ~((1UL<<22)-1); @@ -618,11 +620,13 @@ int construct_dom0(struct domain *d, if ( opt_dom0_shadow || opt_dom0_translate ) { + printk("dom0: shadow enable\n"); shadow_mode_enable(d, (opt_dom0_translate ? SHM_enable | SHM_refcounts | SHM_translate : SHM_enable)); if ( opt_dom0_translate ) { + printk("dom0: shadow translate\n"); #if defined(__i386__) && defined(CONFIG_X86_PAE) printk("FIXME: PAE code needed here: %s:%d (%s)\n", __FILE__, __LINE__, __FUNCTION__); @@ -655,6 +659,7 @@ int construct_dom0(struct domain *d, } update_pagetables(v); /* XXX SMP */ + printk("dom0: shadow setup done\n"); } return 0; -- 2.30.2